package com.hehua.SingletonOne;

public class Client {
    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        Singleton instanceTwo = Singleton.getInstance();
        if (instance == instanceTwo)
            System.out.println("俩个对象为相同实例");
        else
            System.out.println("俩个对象为不同实例");
    }
}
